package com.zeng.ssm.service.config;

import org.springframework.stereotype.Repository;

import java.lang.annotation.Annotation;

/**
 * 描述信息
 *
 * @author zengwanlin
 * @date 2022-03-12T2:04
 */
//@Configuration
//@PropertySource(value = {"classpath:jimu.properties"}, encoding = "UTF-8")
public class JimuReportMiniDaoConfig {

    //@Value("${minidao.basePackage}")
    private String basePackage;

    // MiniDao.class
    //@Value("${minidao.annotation}")
    private Class<? extends Annotation> annotation = Repository.class;

    //@Value("${minidao.keyType}")
    private String keyType = "origin";

    //@Value("${minidao.formatSql}")
    private boolean formatSql = false;

    //@Value("${minidao.showSql}")
    private boolean showSql = false;

    //@Value("${minidao.dbType}")
    private String dbType;

    public String getBasePackage() {
        return basePackage;
    }

    public void setBasePackage(String basePackage) {
        this.basePackage = basePackage;
    }

    public Class<? extends Annotation> getAnnotation() {
        return annotation;
    }

    public void setAnnotation(Class<? extends Annotation> annotation) {
        this.annotation = annotation;
    }

    public String getKeyType() {
        return keyType;
    }

    public void setKeyType(String keyType) {
        this.keyType = keyType;
    }

    public boolean isFormatSql() {
        return formatSql;
    }

    public void setFormatSql(boolean formatSql) {
        this.formatSql = formatSql;
    }

    public boolean isShowSql() {
        return showSql;
    }

    public void setShowSql(boolean showSql) {
        this.showSql = showSql;
    }

    public String getDbType() {
        return dbType;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    @Override
    public String toString() {
        return "JimuReportMiniDaoConfig{" +
                "basePackage='" + basePackage + '\'' +
                ", annotation=" + annotation +
                ", keyType='" + keyType + '\'' +
                ", formatSql=" + formatSql +
                ", showSql=" + showSql +
                ", dbType='" + dbType + '\'' +
                '}';
    }
}
